package com.opeartion.pojo;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.List;

@Table(name = "classes")
public class ClassesRank {
	@Id
	private Integer id;
	private String name;
	private Integer rank;

	private List<Category> categories;

	public List<Category> getCategories() {
		return categories;
	}

	public void setCategories(List<Category> categories) {
		this.categories = categories;
	}

	public Integer getId(){
		return id;
	}
	public void setId(Integer id){
		this.id=id;
	}
	public String getName(){
		return name;
	}
	public void setName(String name){
		this.name=name;
	}
	public Integer getRank(){
		return rank;
	}
	public void setRank(Integer rank){
		this.rank=rank;
	}

	@Override
	public String toString() {
		return "ClassesRank{" +
				"id=" + id +
				", name='" + name + '\'' +
				", rank=" + rank +
				", categories=" + categories +
				'}';
	}
}

